package com.cs.contract.service.impl;

import com.cs.contract.mapper.CsTenderMapper;
import com.cs.contract.service.CsTenderService;
import com.cs.contract.domain.CsTender;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @Author：zrx
 * @Package：com.cs.service.impl
 * @Project：RuoYi-Cloud
 * @name：CsTenderServiceImpl
 * @Date：2024/11/20 11:12
 * @Filename：CsTenderServiceImpl
 */
@Service
public class CsTenderServiceImpl implements CsTenderService {
    private final CsTenderMapper csTenderMapper;

    public CsTenderServiceImpl(CsTenderMapper csTenderMapper) {
        this.csTenderMapper = csTenderMapper;
    }

    @Override
    public CsTender getCsTenderBySid(Integer sid) {
        return csTenderMapper.getCsTenderBySid(sid);
    }

    @Override
    public Integer updateCsTender(CsTender csTender) {
        csTender.setUpdateTime(DateUtils.getNowDate());
        return csTenderMapper.updateCsTender(csTender);
    }

    @Override
    public List<CsTender> listNoEidTender(CsTender csTender) {
        return csTenderMapper.listNoEidTender(csTender);
    }
}
